# -*- coding: utf-8 -*-
#Telefónica Tchau
#
#Author: Gonçalo Ferreira
#
#
min = int(input("Qual o valor de minutos gastos? "))

if min < 200:
    preco = 0.20
elif min >= 200 and min <= 400:
        preco = 0.18
elif min >= 400 and min <= 800:
        preco = 0.16
else:
    preco = 0.08
    
print ("A sua fatura é de €%6.2f" % (min * preco))

#END
